<template>
	<view>
		<!-- <view class="selectbox">
			<text>时间</text>
			<image src="../../static/usercenter/selected-icon.png"></image>
		</view> -->
		<view class="tList" v-for="item in list">
			<view class="tList-item" @click="detail(item)">
				<view class="cell01">
					<image :src="item.user.avatar"></image>
				</view>
				<view class="cell02">
					<view class="row01">
						<text class="name">{{item.user.username}}</text>
						<text class="phone">{{item.user.mobile}}</text>
					</view>
					<view class="row02">
						<text>{{item.worktype.workname}}</text>
						<view class="time">{{item.createtime}}</view>
					</view>
				</view>
				<view class="cell03">
					<image mode="aspectFill" src="../../static/usercenter/icon_zk.png"></image>
				</view>
			</view>
		
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
	
				list:[]
			}
		},
	
		onLoad() {
	
			this.getList();
		},
		methods: {
			
			detail(item){
				uni.navigateTo({
					url:'./applicationDetail?id='+item.id
				})
			},
			getList() {
				let that = this;
				let param = {
					page: 1
				};
				this.$api.applyUserList(param).then(res => {
	
					console.info(res);
					if (res.code == 1) {
						that.list = res.data;
					} else {
	
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.selectbox{
		background: #F9F9F9;
		height: 80rpx;
		line-height: 80rpx;
		display: flex;
		padding: 0 24rpx;
		text{
			flex: auto;
			text-align: right;
			font-size: 28rpx;
			color: #666666;
		}
		image{
			width: 50rpx;
			height: 50rpx;
			margin-top: 15rpx;
		}
	}
	.tList{
		.tList-item{
			display: flex;
			height: 148rpx;
			padding: 40rpx 0;
			margin: 0 40rpx;
			border-bottom: 1rpx solid #EBEBEB;
			.cell01{
				image{
					width: 110rpx;
					height: 110rpx;
					border-radius: 50%;
				}
				margin-right: 30rpx;
			}
			.cell02{
				flex: 1;
				.row01{
					margin-bottom: 36rpx;
					display: flex;
					.name{
						font-size: 28rpx;
						color: #333333;
						margin-right: 30rpx;
					}
					.phone{
						font-size: 24rpx;
						color: #333333;
					}
				}
				.row02{
					display: flex;
					font-size: 22rpx;
					color: #666666;
					text{
						border-radius: 5rpx;
						background: #F5F5F5;
						padding: 4rpx 10rpx;
					}
					.time{
						text-align: right;
						flex: auto;
						font-size: 24rpx;
						color: #ADADAD;
					}
				}
			}
			.cell03{
				width: 100rpx;
				text-align: right;
				margin-top: 50rpx;
				image{
					width: 20rpx;
					height: 30rpx;
				}
			}
		}
	}
</style>
